package com.dlz.systemshop.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 董熠涛
 * @date 2025/4/26 11:17
 */
@RestController
public class TestController {

    @RequestMapping("/test1")
    @PreAuthorize("hasAnyAuthority('sys:goods:test1')")
    public String test1() {
        return "test";
    }

    @RequestMapping("/test2")
    @PreAuthorize("hasAnyAuthority('sys:goods:test2')")
    public String test2() {
        return "test";
    }
}
